package com.learn.xueer.ui.adapter

import androidx.recyclerview.widget.RecyclerView
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseSectionQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.learn.xueer.R
import com.learn.xueer.data.model.bean.SectionBean

class StudyHistoryAdapter(data: MutableList<SectionBean>) :
    BaseQuickAdapter<SectionBean, BaseViewHolder>(
        R.layout.item_history_title, data
    ) {
    override fun convert(helper: BaseViewHolder, item: SectionBean) {
        helper.setText(R.id.tv_title, item.title)
        var studyHistoryItemAdapter = StudyHistoryItemAdapter(item.bean)
        helper.getView<RecyclerView>(R.id.rv).adapter=studyHistoryItemAdapter
    }

}